<h2><?php echo $cont_title; ?></h2>
<?php $this->load->view('admin_messages',$msg_info); ?>
<form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  <input type="hidden" name="frm_token" id="frm_token" value="<?php __e($frm_token);?>" />
  <input type="hidden" name="frm_mode" id="frm_mode" value="<?php __e($frm_mode);?>" />
  <input type="hidden" name="frm_id" id="frm_id" value="<?php __e($frm_id);?>" />
  <table border="0" cellpadding="0" cellspacing="0" class="frm_com" width="100%">
    <tr>
      <td width="49%" class="frm_col_left">
        <table border="0" cellpadding="0" cellspacing="0" class="frm_inst_details">
          <tr>
            <td colspan="2"><h3>General Details</h3></td>
          </tr>
          <tr>
            <td><label for="txt_id"><span class="imp">&nbsp;</span>ID</label></td>
            <td><?php __earray($post_arr, 'os_category_id'); ?></td>
          </tr>
          <?php if($frm_mode == 'edit'){ $p_dt = __earray($post_arr, 'os_editor_created',TRUE); ?>      
          <tr>
            <td><label for="txt_id"><span class="imp">&nbsp;</span>Created</label></td>
            <td><?php __e( __set_date($p_dt, 3) ); ?></td>
          </tr>                    
          <?php } ?>
          <tr>
            <td><label for="os_editor_status"><span class="imp">&nbsp;</span>Status</label></td>
            <td>   
              <?php $chk = __earray($post_arr, 'os_editor_status', TRUE); ?>
              <input type="checkbox" name="os_editor_status" id="os_category_status" value="1" <?php if($chk == 1){__e('checked="checked"');}?> />              
            </td>
          </tr>
          <tr>
            <td><label for="os_editor_name"><span class="imp">*</span>&nbsp;Name</label></td>
            <td>
              <textarea rows="5" cols="6" name="os_editor_name" id="os_editor_name" ><?php __earray($post_arr, 'os_editor_name'); ?></textarea>
            </td>
          </tr>
          
          <tr>
            <td><label for="os_editor_add"><span class="imp">&nbsp;</span>&nbsp;Address</label></td>
            <td>
              <textarea rows="5" cols="6" name="os_editor_add" id="os_editor_add" ><?php __earray($post_arr, 'os_editor_add'); ?></textarea>              
            </td>
          </tr>
          
          <tr>
            <td><label for="os_editor_city"><span class="imp">&nbsp;</span>&nbsp;City</label></td>
            <td>              
              <input type="text" name="os_editor_city" id="os_editor_city" value="<?php __earray($post_arr, 'os_editor_city'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          <tr>
            <td><label for="os_editor_state"><span class="imp">&nbsp;</span>&nbsp;State</label></td>
            <td>              
              <input type="text" name="os_editor_state" id="os_editor_state" value="<?php __earray($post_arr, 'os_editor_state'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          <tr>
            <td><label for="os_editor_postcode"><span class="imp">&nbsp;</span>&nbsp;Postcode</label></td>
            <td>              
              <input type="text" name="os_editor_postcode" id="os_editor_postcode" value="<?php __earray($post_arr, 'os_editor_postcode'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          <tr>
            <td><label for="os_editor_country"><span class="imp">&nbsp;</span>&nbsp;Country</label></td>
            <td>              
              <input type="text" name="os_editor_country" id="os_editor_country" value="<?php __earray($post_arr, 'os_editor_country'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          
          <tr>
            <td><label for="os_editor_phone"><span class="imp">&nbsp;</span>&nbsp;Phone</label></td>
            <td>              
              <input type="text" name="os_editor_phone" id="os_editor_phone" value="<?php __earray($post_arr, 'os_editor_phone'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          
          <tr>
            <td><label for="os_editor_mobile"><span class="imp">&nbsp;</span>&nbsp;Mobile</label></td>
            <td>              
              <input type="text" name="os_editor_mobile" id="os_editor_mobile" value="<?php __earray($post_arr, 'os_editor_mobile'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          
          <tr>
            <td><label for="os_editor_fax"><span class="imp">&nbsp;</span>&nbsp;Fax</label></td>
            <td>              
              <input type="text" name="os_editor_fax" id="os_editor_fax" value="<?php __earray($post_arr, 'os_editor_fax'); ?>" maxlength="500" />              
            </td>
          </tr>
          
          <tr>
              <td><label for="os_editor_short_descp"><span class="imp">&nbsp;</span>&nbsp;Short Description</label></td>
            <td>              
              <textarea rows="5" cols="6" name="os_editor_short_descp" id="os_editor_short_descp" ><?php __earray($post_arr, 'os_editor_short_descp'); ?></textarea>
            </td>
          </tr>
          
          <tr>
              <td><label for="os_editor_descp"><span class="imp">&nbsp;</span>&nbsp;Long Description</label></td>
            <td>              
              <textarea rows="10" cols="6" name="os_editor_descp" id="os_editor_descp" ><?php __earray($post_arr, 'os_editor_descp'); ?></textarea>
            </td>
          </tr>
          <tr>
            <td colspan="2" align="right">
              <input type="submit" name="btn_reg" id="btn_reg" value="" class="btnreg btnpad"/>
              <input type="reset" name="btn_reset" id="btn_reset" value="" class="btnreset btnpad"/>
            </td>
          </tr>
        </table>
      </td>
      <td>&nbsp;</td>        
    </tr>
  </table>
</form>
